package cn.com.dcsgo.service;

import cn.com.dcsgo.domain.bo.CustomerTotalHistoricalTransactionAmountBO;
import cn.com.dcsgo.domain.dto.CustomerPageDTO;
import cn.com.dcsgo.domain.po.Customer;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 针对表【customer(客户表)】的数据库操作Service
 *
 * @author Dcsgo
 * @since 13/5/2025 上午 10:54
 */
public interface CustomerService extends IService<Customer> {

    /**
     * 分页条件查询客户信息
     *
     * @param pageParam       分页参数(页码，页大小)
     * @param customerPageDTO 分页查询条件
     * @return 分页结果
     */
    IPage<Customer> getPage(Page<Customer> pageParam, CustomerPageDTO customerPageDTO);

    /**
     * 更新客户历史交易总额
     *
     * @param customerTotalHistoricalTransactionAmountBOList 所有客户历史交易总额信息
     */
    void update(List<CustomerTotalHistoricalTransactionAmountBO> customerTotalHistoricalTransactionAmountBOList);
}
